package com.nineclock.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@ServletComponentScan(basePackages = "com.nineclock.common.filter")  //扫描过滤器
@MapperScan(basePackages = "com.nineclock.system.mapper") //扫描mapper包 这样在mapper接口时就不用单独加@mapper注解
@EnableDiscoveryClient
public class NCSystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(NCSystemApplication.class,args);
    }
}